home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-05-14 | 5.2 KB | 179 lines |
- # $Id: Smakefile,v 3.7 1994/05/14 13:50:13 ppessi Exp $
- #
- # Smakefile for Napsaterm 3
- #
- # Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
- # Helsinki University of Technology, Finland.
- #
- # Created : Mon Mar 22 07:17:50 1993 ppessi
- # Last modified: Sat May 14 16:03:10 1994 ppessi
- #
- # $Log: Smakefile,v $
- # Revision 3.7 1994/05/14 13:50:13 ppessi
- # Removed separate tektronix version
- #
- # Revision 3.6 1994/05/14 10:58:08 ppessi
- # Updated to include telnet protocol and tektronix emulation code.
- #
- # Revision 3.5 1994/02/25 21:49:51 ppessi
- # Fixed bug in install dependencies
- #
- # Revision 3.4 1994/02/25 16:10:48 ppessi
- # Smakefile for non-debugging version (no assert() etc)
- #
- # Revision 3.3 1994/01/16 17:48:02 ppessi
- # Added info files
- #
- # Revision 3.2 94/01/16 16:16:12 ppessi
- # Updated installation, archive, version tags
- #
- # Revision 3.1 94/01/08 09:00:30 ppessi
- # Napsaterm 3ß
- #
- # Revision 2.0 93/11/15 03:28:26 ppessi
- # Version 2 initial revision
- #
-
- PROG= napsaterm
-
- VERS= 3
-
- SRCS= $(PROG).c tel_iacout.c tel_opt.c tel_subneg.c tel_main.c \
- napsaprefs.c nio.c misc.c emulate.c display.c \
- amigadisplay.c beep.c clip.c keymap.c national.c fonts.c wimp.c \
- tek4010.c
- OBJS= $(PROG).o tel_iacout.o tel_opt.o tel_subneg.o tel_main.o \
- napsaprefs.o nio.o misc.o emulate.o wimp.o display.o \
- amigadisplay.o beep.o clip.o keymap.o national.o fonts.o \
- tek4010.o
- INCS= amiga.h config.h display.h dispmacros.h napsaprefs.h \
- national.h nifty.h nio.h rlogin.h wimp.h ascii_ctrl.h \
- telnet.h tel_iacout.h tel_opt.h tel_subneg.h
- DOCS= $(PROG).texi
- MISC= Smakefile gst.c mymap.c $(PROG).info
- PREFS= napsaprefs
-
- GUIDES= $(PROG).guide $(PROG).guide.info
- GST= napsa.gst
- ARC= napsaterm.lha
-
- # Uncomment dnetlibs if you are using DNET
- # DNETLIBS = lib lib:sas_dnet.lib lib lib:sas_sup.lib
- LIBS= Lib lib:sc.lib Lib Netlib:net.lib $(DNETLIBS)
- DEBUGLIBS= Lib Netlib:gnet.lib assert.o $(DNETLIBS)
-
- CC= sc
- LD= sc
- MAKE= smake
- TAGS= etags
- RM= delete quiet
- MKDIR= makedir
- INSTALL= copy nopro dates all
- BUMPREV= BumpRev
- RCSREV= rcsrev prefix=AmiTCP/IP_
- CAT= type
- MAKEINFO= makeinfo --amiga
- ARCHIVER= lha
-
- DEST= AmiTCP:
-
- CONFIG= DEF=NDEBUG=1
-
- DCFLAGS= NoOptimize DEBUG=FULLFLUSH
- CFLAGS= Optimize Debug=Line
- LDFLAGS= Stripdebug
-
- # "DEF=RCS_ID_C=static char *rcsid"
- DEFS= $(CONFIG) DEF=RCS_ID_C=// DEF=AMIGA=1
- # Include directories for DNet can be commented out (they are not included)
- IDIRS= IDIR=netinclude: #IDIR=suplib:include/ IDIR=dnet:include/
- SCOPTIONS= STRINGMERGE STRUCTUREEQUIVALENCE \
- NOSTACKCHECK NOMULTIPLEINCLUDES \
- NOERRORSOURCE NOVERSION NOERRORHIGHLIGHT \
- SMALLDATA \
- MAP MAPHUNK MAPSYMBOLS MAPLIB MAPXREFERENCE \
- NOICONS BATCH \
- OPTINL OPTTIME OPTCOMP=5 OPTDEP=5 OPTRDEP=5 \
- $(IDIRS) $(DEFS) \
- GST=$(GST) PARM=REG \
- LINKEROPTIONS="PLAIN SWIDTH 32" IGN=306
-
- all: $(PROG) $(DOCS)
-
- $(PROG): SCOPTIONS $(GST) $(OBJS)
- $(CC) LINK TO $@ OBJ $(OBJS) BATCH $(LIBS) $(LDFLAGS) $(CFLAGS)
-
- $(PROG).guide: $(PROG).texi
- $(MAKEINFO) $< -o $(PROG).guide
-
- $(PROG)_rev.h: $(PROG).c
- -$(RCSREV) $(PROG) $(PROG).c
-
- debug:
- $(MAKE) "CFLAGS=$(DCFLAGS)" "LIBS=$(DEBUGLIBS)" "LDFLAGS=" $(PROG)
-
- .c.o:
- -@$(RM) $*.o > nil:
- $(CC) $(CFLAGS) $*.c
-
- SCOPTIONS: Smakefile
- copy to $@ <from <
- $(SCOPTIONS)
- <
-
- install: $(PROG) $(GUIDES) $(DEST)bin $(DEST)help $(DEST)db
- $(INSTALL) FROM $(PROG) TO $(DEST)bin/$(PROG)
- $(INSTALL) FROM $(PROG).info TO $(DEST)bin/$(PROG).info
- $(INSTALL) FROM $(PREFS) TO $(DEST)db
- $(INSTALL) FROM $(GUIDES) TO $(DEST)help
-
- $(DEST)bin:
- -$(MKDIR) $@
- $(DEST)db:
- -$(MKDIR) $@
- $(DEST)help:
- -$(MKDIR) $@
-
- $(ARC): $(SRCS) $(INCS) $(MISC) $(DOCS) $(PROG) $(PREFS) $(GUIDES)
- -@$(RM) $@ > nil:
- $(ARCHIVER) a $@ < -i<
- $(SRCS) $(INCS) $(MISC) $(DOCS) $(PROG) $(PREFS) $(GUIDES)
- <
-
- TAGS: $(SRCS)
- $(TAGS) $(SRCS)
-
- clean:
- -$(RM) \#?.(o|map|lnk|gst|teko) SCOPTIONS
-
- $(GST): config.h amiga.h
- gst `cd`/$@ unload
- -@$(RM) $@ >nil:
- sc NOOBJNAME NOGST MAKEGST=$@ gst.c
-
- # DO NOT DELETE THIS LINE -- make depend depends on it.
- amigadisplay.o: amigadisplay.c amiga.h nifty.h display.h dispmacros.h \
- napsaprefs.h wimp.h nio.h national.h config.h
- beep.o: beep.c amiga.h display.h config.h
- clip.o: clip.c amiga.h nifty.h config.h
- display.o: display.c nifty.h display.h dispmacros.h napsaprefs.h config.h
- emulate.o: emulate.c nifty.h display.h napsaprefs.h config.h
- fonts.o: fonts.c amiga.h nifty.h display.h dispmacros.h napsaprefs.h wimp.h\
- config.h
- keymap.o: keymap.c wimp.h nifty.h amiga.h display.h napsaprefs.h config.h
- misc.o: misc.c amiga.h nifty.h config.h
- napsaprefs.o: napsaprefs.c nifty.h display.h dispmacros.h napsaprefs.h\
- config.h
- napsaterm.o: napsaterm.c napsaterm_rev.h \
- nifty.h nio.h napsaprefs.h amiga.h config.h
- national.o: national.c nio.h amiga.h napsaprefs.h national.h config.h
- nio.o: nio.c nio.h amiga.h napsaprefs.h rlogin.h config.h
- rcmd.o: rcmd.c rlogin.h
- wimp.o: wimp.c amiga.h display.c nifty.h display.h dispmacros.h napsaprefs.h \
- wimp.h config.h
- tel_main.o: tel_main.c telnet.h tel_opt.h tel_subneg.h tel_iacout.h
- tel_opt.o: tel_opt.c telnet.h tel_opt.h tel_iacout.h
- tel_iacout.o: tel_iacout.c telnet.h tel_iacout.h
- tel_subneg.o: tel_subneg.c telnet.h tel_subneg.h tel_iacout.h
- tek4010.o: tek4010.c amiga.h nifty.h napsaprefs.h wimp.h ascii_ctrl.h
-